/*
 * @Descripttion: 说明
 * @Author: ZXS
 * @Date: 2022-09-09 14:36:49
 * @LastEditors: ZXS
 * @LastEditTime: 2022-09-09 17:16:39
 */
const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)

const plugins = [
  [
    'import',
    {
      libraryName: '@icon-park/vue',
      libraryDirectory: 'es/icons',
      camel2DashComponentName: false
    }
  ]
]
if (IS_PROD) {
  plugins.push('transform-remove-console')
}

module.exports = {
  presets: ['@vue/cli-plugin-babel/preset'],
  plugins
}
